<template>
    <div>
        <TypeNav></TypeNav>
        <ListContainer></ListContainer>
        <Recommend></Recommend>
        <Rank></Rank>
        <Like></Like>
        <Floor v-for="floor in floorList" :key="floor.id" :floor="floor"></Floor>
        <Brand></Brand>
    </div>
</template>

<script>
import ListContainer from "@/page/Home/ListContainer";
import Recommend from "@/page/Home/Recommend";
import Rank from "@/page/Home/Rank";
import Like from "@/page/Home/Like";
import Floor from "@/page/Home/Floor";
import Brand from "@/page/Home/Brand";
export default {
    name: "Home",
    components:{ListContainer,Recommend,Rank,Like,Floor,Brand},
    mounted() {
        this.$store.dispatch('getFloorList');
    },
    computed:{
        floorList(){
            return this.$store.state.home.floorList
        }
    },
    updated() {
        // console.log(this.floorList)
    }
    
}
</script>

<style scoped>

</style>